<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	pageContext.setAttribute("basePath", basePath);
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>郴电国际收费系统登录页面</title>
<link href="<%=basePath %>bootstrap/Css/cb.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>bootstrap/Css/n.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {
	color: #ffffff;
	font-size: 12px;
}
.STYLE4 {
	color: #8da8c3;
	font-size: 12px;
}
.STYLE6 {
	font-size: 12px;
	color: #5593ce;
}
-->
</style>
<link  href="<%=basePath %>bootstrap/Css/layout.css" rel="stylesheet" type="text/css" />
<script>
function check(){
	f=document.form1;
	if(f.username.value==""){
		alert("请填写用户名");
		return false;
	}
	if(f.userpsw.value==""){
		alert("请填写密码");
		return false;
	}
	if(f.userrole.value==""){
		alert("请选择用户类型");
		return false;
	}
	
}
</script>
</head>

<body>
<table width="100%" height="594" border="0" align="center" cellpadding="0" cellspacing="0"  style="margin:0px; padding:0px">
  <tr>
    <td height="594"  align="center" valign="top" background="<%=basePath %>bootstrap/Images/bj.gif">
	<table width="465" height="414" border="0" align="center" cellpadding="0" cellspacing="0" >
      <tr>
        <td  height="152" colspan="3" valign="bottom"><img src="<%=basePath %>bootstrap/Picture/top.gif" width="464" height="77" /></td>
      </tr>
      <tr>
        <td width="15" height="262" background="<%=basePath %>bootstrap/Images/bj1.gif">&nbsp;</td>
        <td width="420" valign="middle" background="<%=basePath %>bootstrap/Images/bj2.gif">
		
		<form id="form1" name="form1" method="post" action="login.do" onsubmit="return check();">
		<table width="100%" height="170" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="31%" align="right"><span class="STYLE1">用户名：</span></td>
              <td colspan="3" align="left"><label>
                <input name="username" type="text" id="username" />
              </label></td>
            </tr>
            <tr>
              <td align="right"><span class="STYLE1">密码：</span></td>
              <td colspan="3" align="left"><label>
                <input name="userpsw" type="password" id="userpsw" />
              </label></td>
            </tr>
            <tr>
              <td align="right"><span class="STYLE1">身份：</span></td>
              <td colspan="3" align="left">
                <label>
                <select name="userrole">
                  <option value="">请选择...</option>
                  <option value="0">管理员</option>
                  <option value="1">操作员</option>
                  <option value="2">用户</option>
                 
                </select>
                </label> 
              </td>
            </tr>
            
            <tr>
              
              <td width="15%" valign="top"><p class="STYLE4">&nbsp;</p></td>
              <td width="15%" height="55" align="left">
              <input name="image" type="image"  style="width:60px; height:55px;" src="<%=basePath %>bootstrap/Images/login2.gif" /></td><br />
              <td width="70%" align="left" valign="middle"><a><span class="STYLE4">注册新用户</span></a><br />                
              <span class="STYLE4">找回密码</span></td>
               
			  
            </tr>
        </table>
		 </form>		</td>
        <td width="13" background="<%=basePath %>bootstrap/Images/bj3.gif">&nbsp;</td>
      </tr>
    </table>
	<table width="465" height="76" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="76">&nbsp;</td>
      </tr>
    </table>
	<br />
	<table width="100%" height="64" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="64" align="center" valign="middle"><span class="STYLE6">copyright © 天津理工大学.ALL Rights Reserved. <br />
              <br />
           天津市西青区宾水西道391号</span></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>